<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rexam_subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rexam_subject_id" data-rule="required" data-source="rexam/subject/index" class="form-control selectpage" name="row[rexam_subject_id]" type="text" value="{$row.rexam_subject_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Typedata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="typedataList" item="vo"}
            <label for="row[typedata]-{$key}"><input id="row[typedata]-{$key}" name="row[typedata]" type="radio" value="{$key}" {in name="key" value="$row.typedata"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group" id="gChoice">
        <label class="control-label col-xs-12 col-sm-2">{:__('Options')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-template="questionoptionstpl" data-name="row[options]">
                <dd>
                    <ins style="width:50px">{:__('Options key')}</ins>
                    <ins style="width:300px">{:__('Options value')}</ins>
                    <ins style="width:30px">{:__('Options answer')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea id="c-options" name="row[options]" class="form-control hide" cols="30" rows="5">{$row.options}</textarea>
            </dl>
            <script id="questionoptionstpl" type="text/html">
                <dd class="form-inline">
                    <ins style="width:50px"><input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="<%=row.key%>" placeholder="{:__('Options key')}"/></ins>
                    <ins style="width:300px"><input style="width:300px" type="text" name="<%=name%>[<%=index%>][value]" class="form-control" value="<%=row.value%>" placeholder="{:__('Options value')}"/></ins>
                    <ins style="width:30px"><input style="width:30px" type="checkbox" name="<%=name%>[<%=index%>][answer]" value="1" <%=row.answer?"checked":""%>/></ins>
                    <!--下面的两个按钮务必保留-->
                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group" id="gJudge">
        <label class="control-label col-xs-12 col-sm-2">{:__('Judgedata')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="judgedataList" item="vo"}
                <label for="row[judgedata]-{$key}"><input id="row[judgedata]-{$key}" name="row[judgedata]" type="radio" value="{$key}" {in name="key" value="$row.judgedata"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Answercontent')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-answercontent" class="form-control editor" rows="5" name="row[answercontent]" cols="50">{$row.answercontent|htmlentities}</textarea>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
